<?php
$base_folder = dirname(__FILE__);
$system_folder = "system";

$core_folder = $system_folder."/base/core";

$application_folder = $system_folder."/application";

define('SYSTEM_PATH', str_replace('\\', '/', $system_folder));
//debug mode
define('IS_DEBUG', true);
// web root path
define('ROOT_PATH', str_replace('\\', '/', dirname(__FILE__) . DIRECTORY_SEPARATOR));
// Name of the "core folder"
define('CORE_PATH', str_replace('\\', '/', $core_folder . DIRECTORY_SEPARATOR));
// app start.
if (is_file(ROOT_PATH . 'index.html') && (time() - filemtime(ROOT_PATH . 'index.html') < 1200) && !IS_DEBUG) {
	//缓存未失效则直接加载静态文件
	require_once ROOT_PATH . 'index.html';
} else {
	require_once CORE_PATH . 'start.php';
}